package sky.cin.framework.network.dto;

public class Host {
    
    private final String domain;
    private final String port;
    
    public String getDomain() {
        return domain;
    }
    
    public String getPort() {
        return port;
    }
    
    public Host(String host) {
        String[] split = host.split(":");
        this.domain = split[0];
        this.port = split[1];
    }
    
    @Override
    public String toString() {
        return domain + ":" + port;
    }
}
